<script setup>
import {reactive,watch} from 'vue';
const emits = defineEmits(['updateCellValue']);
const props = defineProps({
    servePort:String,
    serveUrl:String,
    cell:Object,
    form:Object,
    cellIndex:String,
    cellMap:Object,
    value:String,
    colIndex:Number,
    rowIndex:Number,
})
const handleInput = (val) => {
    console.log(val);
    //props.cellMap[props.cellIndex].value = val;
}
watch(() => props.value, (val) => {
    console.log(val);
})

const updateCellValue = (r,c,value) => {
    emits('updateCellValue',r,c,value);
}
</script>
<template>
    <el-input @input="(v)=>{updateCellValue(props.rowIndex, props.colIndex,v)}" v-model="props.form[props.cell.__vModel__]" />
</template>